#ifndef __MyLogger_HH__
#define __MyLogger_HH__
#include <log4cpp/CategoryStream.hh>
using namespace log4cpp;

class MyLogger
{
public:
    static MyLogger * getInstance();
    static void destroy();
	void warn(const char *msg);
	void error(const char *msg);
	void debug(const char *msg);
	void info(const char *msg);
	
private:
	MyLogger();
	~MyLogger();
    
private:
    static MyLogger * _pInstance;
    Category & _mycat;
};




#endif
